iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt mode
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Jul 2008 16:28:27 +0000 (17:28 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 2 Jul 2008 16:28:27 +0000 (17:28 +0100)
commitfec35adc8693a574a5fa77f06c56916a6e185043
tree4c723030596b4fe8f9bae228834bdd440662ceb5
parent38cfc3b8d0bcfd2250bafa8efe1714f1b522d3fc
iommu: Fix hvm_dpci_eoi for smp guest in ioapic interrupt mode

My testing shows, for some smp guests, ent->fields.mask will not be
unmasked when hvm_dpci_eoi() is invoked at the first time. In that
case, we should rely on timeout call back to do pirq_guest_eoi() and
should not stop the per-irq timer too early.

From: Wei Wang <wei.wang2@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/drivers/passthrough/io.c